﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using University.Workshop.Presenters;
using University.Workshop.Model;
using System.Windows.Forms;

namespace University.Workshop.WinApp
{
    public partial class ServiceCost : Form, IServiceCost
    {
        public ServiceCost()
        {
            InitializeComponent();
        }


        public float CostRoom
        {
            get { return Convert.ToInt64(textBoxCostperDayRoom.Text);}
            set { textBoxCostperDayRoom.Text = value.ToString(); }
        }

        public int StayDays
        {
            get { return Convert.ToInt32(textBoxStayDays.Text); }
            set { textBoxStayDays.Text = value.ToString(); }
        }
        public float Total
        {
            get { return Convert.ToInt64(textBoxTotal); }
            set { textBoxTotal.Text = value.ToString(); }
        }
        
        public List<ProductCost> Table 
        {
        
            set { dataGridViewProducts.Rows.Add(value); }
        }


        private void buttonRealizarPago_Click(object sender, EventArgs e)
        {


        }
    }
}
